﻿#include "dlgpainter.h"
#include "ui_dlgpainter.h"

dlgPainter::dlgPainter(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::dlgPainter)
{
    ui->setupUi(this);
    connect(this, SIGNAL(emit_draw(DrawType)), ui->wDrawer, SLOT(draw(DrawType)));
}

dlgPainter::~dlgPainter()
{
    delete ui;
}

void dlgPainter::on_btnDrawLine_clicked()
{
    emit emit_draw(frmDrawer::DrawLine);
}

void dlgPainter::on_btnDrawArc_clicked()
{
    emit emit_draw(frmDrawer::DrawArc);
}

void dlgPainter::on_btnDrawLayer_clicked()
{
    emit emit_draw(frmDrawer::DrawLayer);
}
